package com.edfu.core.commons.beans;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Rating implements Serializable {

	private static final long serialVersionUID = -1157171284472615536L;
	
	private long id;
	private String objectType;
	private long objectId;
	private int score;
	private String userId;
	private double meanRating;
	private int ratingCount;
	private String description;
	private Date ratedOn;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	
	public String getObjectType() {
		return objectType;
	}
	public void setObjectType(String objectType) {
		this.objectType = objectType;
	}
	
	public long getObjectId() {
		return objectId;
	}
	public void setObjectId(long objectId) {
		this.objectId = objectId;
	}
	
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public double getMeanRating() {
		return meanRating;
	}
	public void setMeanRating(double meanRating) {
		this.meanRating = meanRating;
	}
	
	public int getRatingCount() {
		return ratingCount;
	}
	public void setRatingCount(int ratingCount) {
		this.ratingCount = ratingCount;
	}
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	public Date getRatedOn() {
		return ratedOn;
	}
	public void setRatedOn(Date ratedOn) {
		this.ratedOn = ratedOn;
	}	

}
